home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1253 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: hickory.westol.com!news
  2. From: Mark Kintigh <breetai@oak.westol.com>
  3. Newsgroups: comp.lang.c
  4. Subject: DOS commands
  5. Date: Fri, 12 Jan 1996 12:04:33 -0800
  6. Organization: Westmoreland Online Inc.
  7. Message-ID: <30F6BED1.5E25@oak.westol.com>
  8. NNTP-Posting-Host: pm124.westol.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b4a (Win16; I)
  13.  
  14. wayneft@indirect.com wrote:
  15. > I know that this is probably a stupid question, but it's been a while
  16. > since I have programmed in C.  My question is what is the command in a
  17. > C program that executes a DOS command such as DIR, or COPY.  I've
  18. > looked through all my books and for some reason I just can't seem to
  19. > find it.  I know it is a real simple command that is in the dos.h
  20. > header file.  If someone could email me or post the command I would be
  21. > very grateful, I need it because I have to something for work.
  22.  
  23. There are two ways:
  24.     exec()
  25.     system()
  26. Choose the one that suits you best!
  27. -- 
  28.      _____
  29.     /    /##                 breetai@oak.westol.com
  30.    /    /####                                                     ____
  31.   (| []/ o ##)    "We met the enemy, and they were'nt us, then   | _|||
  32. |\ \_/ /\   # /|  we faced a pannel of 'us' and found they were  ||  ||
  33. | \-\ ==== /-/ |                    the enemy."                   \\//
  34. ||\\ '----' //||                                                   \/
  35. || \\/    \// ||
  36.